package service;

import bean.Role;

import java.util.List;

public interface RoleService {

    public List<Role> getRoleList(int pageIndex, Integer pageSize);

    public int total();

    //用户查询出用户需要的角色
    public List<Role> getList();

    public int insert(String roleName,int roleState,String[] menuIds);

    public Role findById(int roleId);

    public int delete(int roleId);

    public int update(Role role);
}
